<ion-view view-title="订单管理">
    <ion-content  >
            <div class="card" ng-repeat="order in orderlist | orderBy:'-order_id'">
            <ion-item>
                订单编号：{{order.order_id}}
            </ion-item>
            <ion-item>
                商品编号：{{order.product_id}}
            </ion-item>
            <ion-item>
                商品名称：{{order.product_name}}
            </ion-item>
            <ion-item>
                购买数量：{{order.product_number}}
            </ion-item>
            <ion-item>
                订单总额：￥{{order.totalPrice}}
            </ion-item>
            <ion-item>
               买家：{{order.buyer_name}}
            </ion-item>
             <ion-item>
               买家地址：{{order.address}}
            </ion-item>
            <ion-item>
                下单时间：{{order.buy_time}}
            </ion-item>
            <ion-item>
                完成时间：{{order.get_time}}
            </ion-item>
            <ion-item>
                订单状态：{{order.state}}
            </ion-item>
            <button ng-show="order.state =='未确认'" ng-click="modify(order.order_id,'已取消')" class="button button-outline button-balanced button-block">取消订单</button><br>
            <button ng-show="order.state =='未确认'" ng-click="modify(order.order_id,'已确认')" class="button button-outline button-balanced button-block">确认订单</button><br>
            <button  ng-show="order.state =='已付款'" ng-click="modify(order.order_id,'已发货')" class="button button-outline button-assertive button-block">确认发货</button>
        </div>
           
    </ion-content>
</ion-view>